package com.itheima.个人代码.IO流2;

import java.util.Properties;
import java.util.Set;

public class Demo15 {
    public static void main(String[] args) {
        Properties prop=new Properties();
        prop.setProperty("张三","14");
        prop.setProperty("李四","22");
        prop.setProperty("王五","27");
        prop.setProperty("麻六","33");
        String property = prop.getProperty("张三");
        System.out.println(property);
        Set<String> strings = prop.stringPropertyNames();
        for (String string : strings) {
            System.out.println(string+"........"+prop.getProperty(string));
        }

    }
}
